package com.adtech.export.coverters.impl;

import com.adtech.export.coverters.PropertyConverter;

/**
 * 中文boolean类型的默认属性转换器
 * @author Puzhijun
 * */
public class ChBooleanDefaultConverter implements 
	PropertyConverter<Boolean> {

	@Override
	public String convert(Object target, Class<Boolean> clazz) {
		if(clazz == Boolean.class) {
			if(target == null) return "否";
			if((Boolean)target) return "是";
			if(!(Boolean)target) return "否";
		}
		return null;
	}

}
